package com.gitee.luosl.cola.lang.function.checked;

import com.gitee.luosl.cola.util.Try;

import java.util.function.Supplier;

@FunctionalInterface
public interface CheckedSupplier<T> {
    T get() throws Throwable;

    default Supplier<Try<T>> lift() {
        return () -> Try.of(this);
    }
}
